home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / util / Makefile < prev    next >
Encoding:
Makefile  |  1992-11-02  |  2.0 KB  |  91 lines

  1. #
  2. # $Header: /hdf/hdf/v3.2r2/util/RCS/Makefile,v 1.10 1992/09/17 19:46:44 koziol beta koziol $
  3. #
  4. # $Log: Makefile,v $
  5. # Revision 1.10  1992/09/17  19:46:44  koziol
  6. # Made changes for Prototypes on the Convex
  7. #
  8. # Revision 1.9  1992/09/04  15:20:18  chouck
  9. # Fixed rules for MISPEL compiler
  10. #
  11. # Revision 1.8  1992/08/14  20:11:36  sxu
  12. # Added -lgl_s and -ansi (or -cckr) for SGI
  13. #
  14. # Revision 1.7  1992/08/12  15:58:11  sxu
  15. # Removed redundant -I for CONVEX
  16. #
  17. # Revision 1.6  1992/08/05  21:27:55  chouck
  18. # Added support for moving utils to HDFBIN
  19. #
  20. # Revision 1.5  1992/07/31  21:20:39  chouck
  21. # Fixed a couple CFLAGS problems
  22. #
  23. # Revision 1.3  1992/07/15  21:39:54  sxu
  24. # Added _STDC_ to make CONVEX happy.
  25. #
  26. # Revision 1.2  1992/07/15  19:36:00  chouck
  27. # Modified to conform to having a top level Makefile
  28. #
  29. # Revision 1.1  1992/07/14  20:08:47  dilg
  30. # Initial revision
  31. #
  32. #
  33. UTILS = hdf24to8 hdfcomp hdfls hdfpack hdfrseq hdftopal hdftor8 paltohdf \
  34.         r8tohdf ristosds vcompat vmake vshow
  35.  
  36. HEOBJ = he_main.o he_cntrl.o he_disp.o he_file.o
  37.  
  38. #
  39. # These values will typically be over ridden by values specified in
  40. #   top level HDF 
  41. #
  42.  
  43. # ==> Uncomment the line with your system type on it.
  44. MACHINE = SUN
  45. #MACHINE = UNICOS
  46. #MACHINE = IRIS4
  47. #MACHINE = APOLLO
  48. #MACHINE = IBM6000
  49. #MACHINE = CONVEX
  50. #MACHINE = VMS
  51. #MACHINE = MIPSEL
  52. #MACHINE = MAC
  53. #MACHINE = PC
  54. #MACHINE = HP9000
  55.  
  56. RM=/bin/rm
  57. RMFLAGS=-f
  58.  
  59. HDFLIB = ../lib
  60. HDFINC = ../include
  61. HDFBIN = ../bin
  62. #For IRIS4, include libgl_s.a
  63. #GLLIB = -lgl_s
  64. GLLIB = 
  65.  
  66. CFLAGS = -D$(MACHINE)
  67.  
  68. # ==> For IRIS4, specify CFLAGS as follows:
  69. #CFLAGS=  -g -D$(MACHINE) -cckr
  70.  
  71. .c.o: he.h he_proto.h
  72. #    $(CC) -c $(CFLAGS) -I$(HDFINC) $(HDFLIB)/libdf.a $(GLLAB)  $<
  73.     $(CC) -c $(CFLAGS) -I$(HDFINC) $(GLLIB)  $<
  74.  
  75. all: hdfed utils
  76.     -mkdir $(HDFBIN)
  77.     -cp $(UTILS) hdfed $(HDFBIN)
  78.  
  79. nofortran: all
  80.  
  81. hdfed: he.h he_proto.h $(HEOBJ)
  82.     $(CC) $(CFLAGS) -I$(HDFINC) $(HEOBJ) $(HDFLIB)/libdf.a -o hdfed
  83.  
  84. .c: $(HDFLIB)/libdf.a
  85.     cc $(CFLAGS) -I$(HDFINC) $< -o $@ $(HDFLIB)/libdf.a $(GLLIB)
  86.  
  87. utils: $(UTILS)
  88.  
  89. clean:
  90.     -$(RM) $(RMFLAGS) *.o $(UTILS) hdfed
  91.